<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
       <script>
           var i1 = window.prompt("请你输入你的第一个值");
           var i2 = window.prompt("请你输入你的第二个值");
         var i1 =    parseInt(i1);
           var i2 = parseInt(i2);
          var i3 = i1+i2;
          alert(i3);
       </script>
</body>
</html>